<%@ page language="java" contentType="text/html; charset=utf-8"   pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/meta.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
<script type="text/javascript" src="${ctx}/js/select-ui.min.js"></script>
	<script charset="utf-8" src="${ctx}/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="${ctx}/kindeditor/lang/zh_CN.js"></script>

  <script type="text/javascript">
	var editor;
	KindEditor.options.filterMode = false;
	KindEditor.ready(function(K){
		editor = K.create("#ch_content",{
			cssPath:'${ctx}/kindeditor/plugins/code/ke.css',
			uploadJson : '${ctx}/kindeditor/jsp/upload_json.jsp',
			fileManagerJson : '${ctx}/kindeditor/jsp/file_manager_json.jsp',
			items : [
						'fontname', 'fontsize', '|', 'forecolor', 'code','hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', '|', 'image', '|', 'source' ] 
						 
		});
		editor.sync();
	});


</script>
  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">新增章节</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
 
    <form action="${ctx}/chapter/saveChapter" method="post"   id="chapterForm">
    
	<input type="hidden" name="chapterId" value="${chapter.course_chapter_id }" />
    
    
    <ul class="forminfo">
        <li><label>课程:<b>*</b></label>  
    

    <div class="vocation">
    <select class="select1" name="courseId" value="${chapter.bc_course_id }">
    <c:forEach items="${courses}" var="course" >
   		 <option value="${course.bc_course_id}">${course.course_name}</option>
    </c:forEach>
    
 
    </select>
    </div>
    
    </li>
    <li><label>标题:<b>*</b></label><input   type="text" name="ch_title" class="dfinput" value="${chapter.chapter_title }"  style="width:518px;"/></li>
    <li><label>摘要:<b>*</b></label><input   type="text" name="ch_abstract" class="dfinput" value="${chapter.cha_abstract }"  style="width:518px;"/></li>
  	<li><label>内容:<b>*</b></label>
    <textarea id="ch_content" name="ch_content"   style="width:700px;height:250px;visibility:hidden;"> ${chapter.chapter_content } </textarea>
    
    </li>
    <li><label>关键字:<b>*</b></label><input name="ch_keyword" type="text" class="dfinput" value="${chapter.chapter_keyword }"  style="width:518px;"/></li>
   
	<!-- 
    
    <li><label>薪资待遇<b>*</b></label>
    
    <div class="vocation">
    <select class="select1">
    <option>3000-5000</option>
    <option>5000-8000</option>
    <option>8000-10000</option>
    <option>10000-15000</option>
    </select>
    </div>
    
    
    
    </li>
    <li><label>工作地点<b>*</b></label>
    
    <div class="usercity">
    
    <div class="cityleft">
    <select class="select2">
    <option>江苏</option>
    <option>湖南</option>
    <option>广东</option>
    <option>北京</option>
    <option>湖北</option>
    </select>
    </div>
    <label>工作地点<b>*</b></label>
    <div class="cityright">
    <select class="select2">
    <option>南京</option>
    <option>无锡</option>
    <option>盐城</option>
    <option>徐州</option>
    <option>连云港</option>
    </select>
    </div>
    
    </div>
    
    
    
    </li>
   -->
    <li><label>&nbsp;</label><input name="" type="button" onclick="check()" class="btn" value="马上发布"/></li>
    <li><font>${msg }</font></li>
    </ul>
     
  	    </form>
       
	</div> 
 
    
    </div>
<script  type="text/javascript">
	function check(){
		editor.sync();
		 $('#chapterForm').submit();
	}
	
</script>

</body>

</html>
